import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Routes, RouterModule } from '@angular/router';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpModule, Http } from '@angular/http';
import { TranslatePipe } from '../../framework/pipe/translate.pipe';
import { LoginComponent } from './login.component';
import { ClassicComponent } from './assets/classic/classic.component';
import { DarkComponent } from './assets/dark/dark.component';
import { TranslateModule, TranslateLoader, TranslateService, TranslateStaticLoader } from 'ng2-translate';

import {
  SelectButtonModule,
  ButtonModule
} from 'primeng/primeng';


@NgModule({
  imports: [
    CommonModule,

    // TranslateModule.forRoot({
    //   provide: TranslateLoader,
    //   useFactory: (http: Http) => new TranslateStaticLoader(http, './assets/i18n', '.json'),
    //   deps: [Http]
    // }),
    FormsModule,
    ReactiveFormsModule,
    SelectButtonModule,
    ButtonModule

  ],
  declarations: [
    LoginComponent,
    ClassicComponent,
    DarkComponent,
    TranslatePipe

  ],
  exports: [LoginComponent],
})

export class LoginModule { }